function getPokemonBoost(poke)
if not isSummon(poke) then return 0 end
return getItemAttribute(getPlayerSlotItem(getCreatureMaster(poke), 8).uid, "boost") or 0
end
- Fórum
- OTServ
- Downloads
- OTServer Alternativo (ATS)
- Novidade: Poketibia 9.60
Novidade: Poketibia 9.60
Por lazarocp, 05 de mar. de 2014 em OTServer Alternativo (ATS)
info
Grupo: Conde
Registrado: 06/08/11
Posts: 752
Reputação: +112

info
Grupo: Visconde
Registrado: 04/11/12
Posts: 464
Reputação: +90
Gênero: Masculino
Char no Tibia: Lysty Of Death

zeref quando desloga com o poke fora da ball e quando loga o poke ta morto ai coloquei a tang do logout ai quando o poke é atk pede life ai se deslogar e quando logar o poke vai ta com a life cheia mais se o poke for atkd peder life e puxar ele pra ball ai soltar ele e deslogar com ele fora da ball e quando logar ele vai ta com a life que tava quando foi atkd e pedido a life mais ai pede life de novo ai deslogar ele vai voltar com a life que tava antes
.
Editado Outubro 5 por lazarocp
info
Grupo: Visconde
Registrado: 04/11/12
Posts: 464
Reputação: +90
Gênero: Masculino
Char no Tibia: Lysty Of Death

O problema não e nada ele só não funciona
já tentou trocar o nome do corpo no items.xml para fainted Bulbasaur
.
Editado Outubro 5 por lazarocp
info
Grupo: Conde
Registrado: 06/08/11
Posts: 752
Reputação: +112

@gristony
Se for reportar algo, tente reportar em português...
Mas pelo que eu entendi, foi erro meu... troque o goback.lua (creaturescripts) por esse:
function onLogout(cid)

Editado Março 16 por ZerefShirou
info
Grupo: Conde
Registrado: 13/10/13
Posts: 504
Reputação: +95
Gênero: Masculino

oO zeref vicio ![]()
lazarocp fiz umas spells esta no face de uma olhada nelas se gostar eu faço mais!
Editado Março 16 por Extremex
info
Grupo: Visconde
Registrado: 04/11/12
Posts: 464
Reputação: +90
Gênero: Masculino
Char no Tibia: Lysty Of Death

Voce não viu o "deicha pra lá já arrumei kkk
não tava editado o seu poste quando eu vi. porriso que comentei pq nao tinha no seu poste dizer que já tinha arrumado quando eu vi ele.
@gristony
Se for reportar algo, tente reportar em português...
Mas pelo que eu entendi, foi erro meu... troque o goback.lua (creaturescripts) por esse:
function onLogout(cid)
if not isCreature(cid) then return true endthisitem = getPlayerSlotItem(cid, 8)if thisitem.uid <= 0 then return true endif not pokeballs[getItemAttribute(thisitem.uid, "btype")] then return true endpokename = getItemAttribute(thisitem.uid, "poke")btype = getItemAttribute(thisitem.uid, "btype")balls = pokeballs[btype]if #getCreatureSummons(cid) >= 1 and thisitem.uid > 1 thendoReturnPokemon(cid, getCreatureSummons(cid)[1], thisitem, balls.Effect)endreturn trueenddeathtexts = {"Oh no! POKENAME, come back!", "Come back, POKENAME!", "That's enough, POKENAME!", "You did well, POKENAME!", "You need to rest, POKENAME!", "Nice job, POKENAME!", "POKENAME, you are too hurt!"}function onDeath(cid, deathList)local owner = getCreatureMaster(cid)local thisball = getPlayerSlotItem(owner, 8)local ballName = getItemAttribute(thisball.uid, "poke")btype = getItemAttribute(thisball.uid, "btype")balls = pokeballs[btype]doSendMagicEffect(getThingPos(cid), balls.Effect)doTransformItem(thisball.uid, balls.all[3])local say = deathtexts[math.random(#deathtexts)]doCreatureSay(owner, string.gsub(say, "POKENAME", getCreatureName(cid)), TALKTYPE_SAY)doItemSetAttribute(thisball.uid, "aid", 0)doRemoveCreature(cid)return falseend@lazarocpQual era o problema?AAAAAAH, era isso, por isso senti que estava esquecendo algo!Script heal.lua da Nurse:function onThingMove(creature, thing, oldpos, oldstackpos)endfunction onCreatureAppear(creature)endfunction onCreatureDisappear(cid, pos)if focus == cid thenselfSay('Good bye sir!')focus = 0talk_start = 0endendfunction onCreatureTurn(creature)endfunction msgcontains(txt, str)return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))endfunction onCreatureSay(cid, type, msg)local msg = string.lower(msg)local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cidfor a, b in pairs(gobackmsgs) dolocal gm = string.gsub(b.go, "doka!", "")local bm = string.gsub(b.back, "doka!", "")if string.find(string.lower(msg), string.lower(gm)) or string.find(string.lower(msg), string.lower(bm)) thenreturn trueendendif((msgcontains(msg, 'hi') or msgcontains(msg, 'heal') or msgcontains(msg, 'help')) and (getDistanceToCreature(cid) <= 3)) thenif exhaustion.get(cid, 9211) thenselfSay('Please wait a few moment before asking me to heal your pokemons again!')return trueendif not getTileInfo(getThingPos(cid)).protection and nurseHealsOnlyInPZ thenselfSay("Please, get inside the pokémon center to heal your pokemons!")return trueendexhaustion.set(cid, 9211, 5)doCreatureAddHealth(cid, getCreatureMaxHealth(cid)-getCreatureHealth(cid))doSendMagicEffect(getThingPos(cid), 132)local mypb = getPlayerSlotItem(cid, 8)if #getCreatureSummons(cid) >= 1 thenlocal s = getCreatureSummons(cid)[1]doCreatureAddHealth(s, getCreatureMaxHealth(s))doSendMagicEffect(getThingPos(s), 13)elseif mypb.itemid >= 1 thendoItemSetAttribute(mypb.uid, "aid", 1)if getPlayerStorageValue(cid, 17000) <= 0 and getPlayerStorageValue(cid, 17001) <= 0 and getPlayerStorageValue(cid, 63215) <= 0 thenfor a, b in pairs (pokeballs) doif isInArray(b.all, mypb.itemid) thendoTransformItem(mypb.uid, b.all[1])endendendendendlocal bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)for cureballs = 1, #pokeballs dofor times = 1, 3 dolocal items = getItemsInContainerById(bp.uid, pokeballs[cureballs].all[times])if #items >= 1 thenfor _, uid in pairs(items) dodoItemSetAttribute(uid, "aid", 1)doTransformItem(uid, pokeballs[cureballs].all[1])endendendendselfSay('There you go! You and your pokemons are healthy again.')endendUma coisa que percebi (pelo menos aqui), não da pra soltar "summon" no Centro Pokemon, acredito que seja nas sourcesE se for editar isso, aproveita e coloca pra não entrar em PZ com FightEdit:Fui atacar meu pokémon pra dar dano nele, mas deu erro no "playerattack.lua (creaturescripts)" então alterei o script, só coloquei 2 coisas, não pode atacar player nem summonfunction onTarget(cid, target)if isPlayer(target) or isSummon(target)then return false endreturn trueendBonus: Fui deixar o Bulbasaur com pouca vida pra ter certeza que a Nurse tava funcionando normalmente deixei ele bater e matei ele, e apareceu isso... Hue Hue
blz XD
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

pda poe o id do corpo na lib mas n usa.. eh como o zeref flo, pega pelo nome do corpo tirando o fainted... o id na lib n serve pra nd ^^
REmovido.
Editado Março 16 por lazarocp
info
Grupo: Campones
Registrado: 05/07/11
Posts: 5
Reputação: 0
Char no Tibia: The Killing Demon

ae vi q precisam de mapper pra desenvolver o mapa sou novo no xtibia e ando meio sem tempo mais posso ajudar...me adc no skype gabriel-1311@hotmail.com q dai a gente conversa :x
info
Grupo: Campones
Registrado: 05/11/12
Posts: 23
Reputação: 0
Char no Tibia: nenhum

pq vc tirou a 5 e 6 geraçao e a mega?? coloca ai de novo





info
Grupo: Barão
Registrado: 17/01/12
Posts: 236
Reputação: +67
Gênero: Masculino
.
Editado Outubro 5 por lazarocp